package com.musicsonar.android.utils;

import java.util.HashMap;
import java.util.Map;

import android.graphics.Bitmap;

import com.facebook.android.AsyncFacebookRunner;
import com.facebook.android.Facebook;
import com.musicsonar.android.activity.R;

public class MusicSonarConstant {

	public static String accountName;

	public static Long accountID = new Long(0);

    public static Facebook mFacebook;

    public static AsyncFacebookRunner mAsyncRunner;

    public static Bitmap facebookImage;

    public static String facebookUID;

	public static Boolean wasPlaying = Boolean.FALSE;

	public static Boolean isValidated = Boolean.FALSE;

	public static int currentPositionPaused = 0;

	public static final Map<String, Integer> error_translate = new HashMap<String, Integer>();
	static{
		error_translate.put("Prepare failed.: status=0x1", R.string.error_server_url);
		error_translate.put("-38", R.string.error_general_server);
		error_translate.put("1", R.string.error_loading_song);
		error_translate.put("null", R.string.error_finding_song);
	}

    public static final String FACEBOOK_FEED_URL = new String("https://apps.facebook.com/musicsonar/?fb_source=feed");

    public static final String FACEBOOK_FEED_IMAGE = new String("https://fbcdn-profile-a.akamaihd.net/hprofile-ak-snc4/592195_418952511467503_1378827653_n.jpg");

    public static final String SDCARD_PATH = new String("/sdcard/");

    public static final String MEDIA_PATH = new String(SDCARD_PATH + "/music_sonar/");

	public static final String FACEBOOK_APPLICATION_ID = "408023689217029";

	public static final String ACCOUNT_TYPE_GOOGLE = "com.google";

	public static final String ACCOUNT_TYPE_FACEBOOK = "com.facebook.auth.login";

	public static final String ACCOUNT_TYPE_SKYPE = "com.skype.contacts.sync";

	public static final String ACCOUNT_TYPE_WHATSAPP = "com.whatsapp";

	public static final String SERVER_URL_LINK = "http://www.musicsonar.com/player/";

	public static final String MP3_URL_LINK = SERVER_URL_LINK + "mp3";

	public static final String VERIFY_MP3_URL_LINK = SERVER_URL_LINK + "verifyMP3/";

	public static final String GET_ACCOUNT_ID_URL_LINK = SERVER_URL_LINK + "getAccountID/";

	public static final String GET_PLAYLIST_SHARED_URL_LINK = SERVER_URL_LINK + "getPlayListShared/";

	public static final String SAVE_PLAYLIST_URL_LINK = SERVER_URL_LINK + "savePlayList/";

	public static final String SHARE_PLAYLIST_URL_LINK = SERVER_URL_LINK + "sharePlayList/";

	public static final String SHARE_PLAYLIST_POST_LINK = SERVER_URL_LINK + "shareLink/";
}